<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Data-Table 表格</title>
    <link rel="stylesheet" href="/web/layui/css/layui.css">
    <!--<link rel="stylesheet" href="http://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">-->
    <link rel="stylesheet" href="/web/static/css/style.css">
    <link rel="stylesheet" href="/web/static/css/re_list.css">
    <link rel="icon" href="/web/static/image/code.png">
</head>
<body class="body">

<!-- 工具集 -->
<div class="my-btn-box">
    <span class="fl">
        <a class="layui-btn btn-add btn-default" id="btn-add">添加充值套餐</a>
        <a class="layui-btn btn-add btn-default" id="btn-refresh"><i class="layui-icon">&#x1002;</i></a>
    </span>
    {{--<span class="fr">--}}
        {{--<span class="layui-form-label">搜索条件：</span>--}}
        {{--<div class="layui-input-inline">--}}
            {{--<input type="text" autocomplete="off" placeholder="请输入搜索条件" class="layui-input">--}}
        {{--</div>--}}
        {{--<button class="layui-btn mgl-20">查询</button>--}}
    {{--</span>--}}
</div>

<!-- 表格 -->
<div id="dateTable">
    <table class="layui-table" id="re_data" lay-filter="re_data"></table>
</div>


<!-- 表格操作按钮集 -->
<script type="text/html" id="barOption">
    {{--<a class="layui-btn layui-btn-mini" lay-event="detail">查看</a>--}}
    <a class="layui-btn layui-btn-mini layui-btn-normal tool-btn" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-mini layui-btn-danger tool-btn" lay-event="del">删除</a>
</script>

</body>
<input type="hidden" name="_token" id="_token" value="<?php echo csrf_token(); ?>">
<div class="add_re" >
    <form class="layui-form max-auto" action="" onclick="return false">
        <div class="layui-form-item">
            <label class="layui-form-label">充值金额</label>
            <div class="layui-input-block">
                <input type="number" name="money"  required lay-verify="required" placeholder="请输入充值金额"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">到账金额</label>
            <div class="layui-input-block">
                <input type="number" name="actual_account" required lay-verify="required" placeholder="请输入实到金额"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="上线" checked>
                <input type="radio" name="status" value="0" title="下线" >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="add_re">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary layui-layer-close">取消</button>
            </div>
        </div>
    </form>
</div>

<div class="edit_re" >
    <form class="layui-form max-auto" action="" onclick="return false">
        <input type="hidden" name="recharge_id" id="r_id" val="">
        <div class="layui-form-item">
            <label class="layui-form-label">充值金额</label>
            <div class="layui-input-block">
                <input type="text" name="money" id="money" required lay-verify="required" placeholder="请输入充值金额"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">到账金额</label>
            <div class="layui-input-block">
                <input type="text" name="actual_account" id="actual_account" required lay-verify="required" placeholder="请输入实到金额"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block status" >
                <input type="radio" name="status" value="1" title="上线" checked>
                <input type="radio" name="status" value="2" title="下线" >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="edit_re">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary layui-layer-close">取消</button>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript" src="/web/layui/layui.js"></script>
<script type="text/javascript" src="/web/index.js"></script>

<script type="text/javascript" src="/web/static/js/product/re_list.js"></script>
</html>